package com.usian.order.controller;

import com.usian.order.service.TbOrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("order")
public class TbOrderController {
    @Autowired
    private TbOrderService tbOrderService;

    @RequestMapping("create")//添加
    public void create (String userId, String commodityCode,int orderCount){
        tbOrderService.create(userId,commodityCode,orderCount);
    }
}
